<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>问题列表</title>
		<link href="css/gl/wtlist.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src='dwr/engine.js'>
</script>
		<script type="text/javascript" src='dwr/util.js'>
</script>
		<script type="text/javascript" src="script/jquery/jquery-1.5.1.min.js">
</script>
		<script type="text/javascript" src='dwr/interface/QuesDwr.js'>
</script>
		<script type="text/javascript" src="script/util.js">
</script>
		<script type="text/javascript" src="script/gl/wtlist.js">
</script>
		<script type="text/javascript">
</script>
	</head>

	<body>
		<div id="page_all">
			<jsp:include page="title.jsp" flush="true">
				<jsp:param name="jspName" value="wtModuleOpt" />
			</jsp:include>
			<div id="main">
				<div id="tgleft">
					<jsp:include page="wtleft.jsp" flush="true">
						<jsp:param name="jspName" value="listModuleOpt" />
					</jsp:include>
				</div>
				<div id="tgmain">
					<table id="searchbt" cellpadding="0" cellspacing="0">
						<tr>
							<td>
								分类:
							</td>
							<td>
								<select id="kind" style="width:100px;">
									<option value="0">
										请选择
									</option>
								</select>
							</td>
							<td>
								&nbsp;题型:
							</td>
							<td>
								<select id="wttype">
									<option value="-1">
										请选择
									</option>
									<option value="0">
										选择题
									</option>
									<option value="1">
										填空题
									</option>
									<option value="2">
										判断题
									</option>
									<option value="3">
										简答题
									</option>
								</select>
							</td>
							<td>
								&nbsp;状态:
							</td>
							<td>
								<select id="wtstate">
									<option value="-1">
										请选择
									</option>
									<option value="0">
										未审核
									</option>
									<option value="1">
										通过
									</option>
									<option value="2">
										未通过
									</option>
								</select>
							</td>
							<td>
								<input id="tkey" style="" maxlength="100" type="text">
							</td>
							<td>
								<img alt="" src="img/gl/07.jpg" style="cursor: pointer;"
									onclick="Search()" />
							</td>
							<td>
								<img alt="" src="img/gl/08.jpg" style="cursor: pointer;"
									onclick="Reset()" />
							</td>
						</tr>
					</table>
					<table id="addnotice" cellpadding="0" cellspacing="0">
						<tr class="title">
							<td>
								序号
							</td>
							<td>
								分类
							</td>
							<td>
								题型
							</td>
							<td>
								难度
							</td>
							<td>
								题目
							</td>
							<td>
								状态
							</td>
							<td>
								编辑
							</td>
						</tr>
						<tbody id="ttbody">

						</tbody>
						<tr class="title">
							<td colspan="7">
								<div id="deleteAll"
									style="width: 67px; height: 25px; float: right; padding-left: 1px; text-align: left;">
									<img alt="删除所选" src="img/gl/100.jpg" class="button"
										onclick="DelMore()" />
								</div>
								<div id="selectPanel"
									style="width: 100px; height: 18px; float: right; text-align: right; padding-right: 1px; margin-top: 2px;">
									全选
									<input id="checkedAll" type="checkbox">
								</div>
							</td>
						</tr>
					</table>

					<div id="pageinfo">
					</div>
					<div id="pager">
						<img id="fstPage" alt="首页" src="img/gl/13.jpg"
							class="button pager" style="margin-right: 5px;"
							onclick="ChangePage('fst')" />
						<img id="forePage" alt="上一页" src="img/gl/14.jpg"
							class="button pager" style="margin-right: 5px;"
							onclick="ChangePage('fore')" />
						<img id="nextPage" alt="下一页" src="img/gl/15.jpg"
							class="button pager" style="margin-right: 5px;"
							onclick="ChangePage('next')" />
						<div style="width: 100p;" class="pager" style="margin-right:5px;">
							转到
							<input id="gopage" style="width: 30px;" type="text" />
							页
						</div>
						<img alt="GO" src="img/gl/16.jpg" class="button pager"
							style="margin-right: 5px;" onclick="PageGo()" />
					</div>

				</div>
			</div>
			<div id="footer">
				<jsp:include page="footer.jsp" flush="true"></jsp:include>
			</div>
		</div>

		<div id="fullbg"></div>
		<div id="editpanel" class="opendiv">
				<div id="editbtm" class="opendivdom">
				    <input id="tid" type="hidden" value="0">
					<table id="xxtable" style="display:none;" cellpadding="0" cellspacing="0">
							<tr>
								<td class="ftd">
									分&nbsp;类:
								</td>
								<td>
									<select id="xzkind">
									</select>
								</td>
							</tr>
							<tr>
								<td class="ftd" style="vertical-align: top;">
									问&nbsp;题:
								</td>
								<td>
									<textarea id="problem"
										onkeyup="this.value = this.value.substring(0, 200);"></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									选&nbsp;项A:
								</td>
								<td>
									<input id="xxa" class="xuanx" maxlength="100">
								</td>
							</tr>
							<tr>
								<td class="ftd">
									选&nbsp;项B:
								</td>
								<td>
									<input id="xxb" class="xuanx" maxlength="100">
								</td>
							</tr>
							<tr>
								<td class="ftd">
									选&nbsp;项C:
								</td>
								<td>
									<input id="xxc" class="xuanx" maxlength="100">
								</td>
							</tr>
							<tr>
								<td class="ftd">
									选&nbsp;项D:
								</td>
								<td>
									<input id="xxd" class="xuanx" maxlength="100">
								</td>
							</tr>
							<tr>
								<td class="ftd">
									答&nbsp;案:
								</td>
								<td>
									<input id="daa" name="xzda" type="checkbox" value="1" style="">
									A &nbsp;&nbsp;
									<input id="dab" name="xzda" type="checkbox" value="2" style="">
									B &nbsp;&nbsp;
									<input id="dac" name="xzda" type="checkbox" value="3" style="">
									C &nbsp;&nbsp;
									<input id="dad" name="xzda" type="checkbox" value="4" style="">
									D
								</td>
							</tr>
							<tr>
								<td class="ftd">
									难&nbsp;度:
								</td>
								<td>
									<select id="xxlevel">
										<option value="1">
											容易
										</option>
										<option value="2">
											普通
										</option>
										<option value="3">
											困难
										</option>
									</select>
								</td>
							</tr>
							<tr>
							   <td colspan="2" style="text-align:center;">
									<img alt="" style="cursor: pointer;" src="img/gl/17.jpg"
									onclick="UpdateXZ()" />
								    <img alt="" style="cursor: pointer; margin-left: 50px;"
									src="img/gl/18.jpg" onclick="CancelUp()" />
								</td>
							</tr>
						</table>
					<table id="tktable" style="display:none;"  cellpadding="0" cellspacing="0">
							<tr>
								<td class="ftd">
									分&nbsp;类:
								</td>
								<td>
									<select id="tkkind">
									</select>
								</td>
							</tr>
							<tr>
								<td class="ftd" style="vertical-align: top;">
									问&nbsp;题:
								</td>
								<td>
									<textarea id="tkproblem"
										onkeyup="this.value = this.value.substring(0, 200);"></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									答&nbsp;案:
								</td>
								<td>
									<input id="tkans" class="xuanx" maxlength="100">
								</td>
							</tr>
							<tr>
								<td class="ftd">
									难&nbsp;度:
								</td>
								<td>
									<select id="tklevel">
										<option value="1">
											容易
										</option>
										<option value="2">
											普通
										</option>
										<option value="3">
											困难
										</option>
									</select>
								</td>
							</tr>
							<tr>
							   <td colspan="2" style="text-align:center;padding-top:60px;">
									<img alt="" style="cursor: pointer;" src="img/gl/17.jpg"
									onclick="UpdateTK()" />
								    <img alt="" style="cursor: pointer; margin-left: 50px;"
									src="img/gl/18.jpg" onclick="CancelUp()" />
								</td>
							</tr>
					</table>
					<table id="pdtable" style="display:none;"  cellpadding="0" cellspacing="0">
							<tr>
								<td class="ftd">
									分&nbsp;类:
								</td>
								<td>
									<select id="pdkind">
									</select>
								</td>
							</tr>
							<tr>
								<td class="ftd" style="vertical-align: top;">
									问&nbsp;题:
								</td>
								<td>
									<textarea id="pdproblem"
										onkeyup="this.value = this.value.substring(0, 200);"></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									答&nbsp;案:
								</td>
								<td>
									<select id="pdans">
										<option value="1">
											正确
										</option>
										<option value="0">
											错误
										</option>
									</select>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									难&nbsp;度:
								</td>
								<td>
									<select id="pdlevel">
										<option value="1">
											容易
										</option>
										<option value="2">
											普通
										</option>
										<option value="3">
											困难
										</option>
									</select>
								</td>
							</tr>
							<tr>
							   <td colspan="2" style="text-align:center;padding-top:60px;">
									<img alt="" style="cursor: pointer;" src="img/gl/17.jpg"
									onclick="UpdatePD()" />
								    <img alt="" style="cursor: pointer; margin-left: 50px;"
									src="img/gl/18.jpg" onclick="CancelUp()" />
								</td>
							</tr>
					</table>
					<table id="jdtable" style="display:none;" cellpadding="0" cellspacing="0">
							<tr>
								<td class="ftd">
									分&nbsp;类:
								</td>
								<td>
									<select id="jdkind">
									</select>
								</td>
							</tr>
							<tr>
								<td class="ftd" style="vertical-align: top;">
									问&nbsp;题:
								</td>
								<td>
									<textarea id="jdproblem"
										onkeyup="this.value = this.value.substring(0, 200);"></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									答&nbsp;案:
								</td>
								<td>
									<textarea id="jdans"
										onkeyup="this.value = this.value.substring(0, 1500);"></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									难&nbsp;度:
								</td>
								<td>
									<select id="jdlevel">
										<option value="1">
											容易
										</option>
										<option value="2">
											普通
										</option>
										<option value="3">
											困难
										</option>
									</select>
								</td>
							</tr>
							<tr>
							   <td colspan="2" style="text-align:center;">
									<img alt="" style="cursor: pointer;" src="img/gl/17.jpg"
									onclick="UpdateJD()" />
								    <img alt="" style="cursor: pointer; margin-left: 50px;"
									src="img/gl/18.jpg" onclick="CancelUp()" />
								</td>
							</tr>
					</table>
				</div>
		</div>
		<div id="showpanel" class="opendiv">
			<div class="opendivdom" style="text-align: center;">
                 <table id="xxshow" style="display:none;" cellpadding="0" cellspacing="0">
							<tr>
								<td class="ftd">
									分&nbsp;类:
								</td>
								<td>
									<textarea id="xxkindshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd" style="vertical-align: top;">
									问&nbsp;题:
								</td>
								<td>
									<textarea id="problemshow"  readonly="readonly"></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									选&nbsp;项A:
								</td>
								<td>
									<textarea id="xxashow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									选&nbsp;项B:
								</td>
								<td>
									<textarea id="xxbshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									选&nbsp;项C:
								</td>
								<td>
									<textarea id="xxcshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									选&nbsp;项D:
								</td>
								<td>
									<textarea id="xxdshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									答&nbsp;案:
								</td>
								<td>
									<textarea id="xxansshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									难&nbsp;度:
								</td>
								<td>
						          <textarea id="xxlevelshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
							   <td colspan="2" style="text-align:center;">
								    <img alt="" style="cursor: pointer;"
									src="img/gl/18.jpg" onclick="closeShow()" />
								</td>
							</tr>
						</table>
					<table id="tkshow" style="display:none;"  cellpadding="0" cellspacing="0">
							<tr>
								<td class="ftd">
									分&nbsp;类:
								</td>
								<td>
									<textarea id="tkkindshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd" style="vertical-align: top;">
									问&nbsp;题:
								</td>
								<td>
									<textarea id="tkproblemshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									答&nbsp;案:
								</td>
								<td>
									<textarea id="tkansshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									难&nbsp;度:
								</td>
								<td>
									<textarea id="tklevelshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
							   <td colspan="2" style="text-align:center;padding-top:60px;">
								    <img alt="" style="cursor: pointer; margin-left: 50px;"
									src="img/gl/18.jpg" onclick="closeShow()" />
								</td>
							</tr>
					</table>
					<table id="pdshow" style="display:none;"  cellpadding="0" cellspacing="0">
							<tr>
								<td class="ftd">
									分&nbsp;类:
								</td>
								<td>
									<textarea id="pdkindshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd" style="vertical-align: top;">
									问&nbsp;题:
								</td>
								<td>
									<textarea id="pdproblemshow"  readonly="readonly"></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									答&nbsp;案:
								</td>
								<td>
									<textarea id="pdansshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									难&nbsp;度:
								</td>
								<td>
									<textarea id="pdlevelshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
							   <td colspan="2" style="text-align:center;padding-top:60px;">
								    <img alt="" style="cursor: pointer; margin-left: 50px;"
									src="img/gl/18.jpg" onclick="closeShow()" />
								</td>
							</tr>
					</table>
					<table id="jdshow" style="display:none;" cellpadding="0" cellspacing="0">
							<tr>
								<td class="ftd">
									分&nbsp;类:
								</td>
								<td>
									<textarea id="jdkindshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd" style="vertical-align: top;">
									问&nbsp;题:
								</td>
								<td>
									<textarea id="jdproblemshow"  readonly="readonly"></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									答&nbsp;案:
								</td>
								<td>
									<textarea id="jdansshow"  readonly="readonly"></textarea>
								</td>
							</tr>
							<tr>
								<td class="ftd">
									难&nbsp;度:
								</td>
								<td>
									<textarea id="jdlevelshow"  readonly="readonly" class="readonly" ></textarea>
								</td>
							</tr>
							<tr>
							   <td colspan="2" style="text-align:center;">
								    <img alt="" style="cursor: pointer; "
									src="img/gl/18.jpg" onclick="closeShow()" />
								</td>
							</tr>
					</table>
			</div>
		</div>
	</body>
</html>
